<?php if (empty($this->request->params['prefix'])): ?>
<?php else: ?>
 <?php if(empty($this->request->params['admin'])) {?>
  <h2><?php echo __l('Change password'); ?></h2>
  <?php } ?>
<?php endif; ?>
		
<div class="container_24 clearfix space-top js-response js-responses">
<?php if (empty($this->request->params['prefix'])): ?>
<div class="shodow-tl">
   <div class="shodow-tr">
    <div class="shodow-tm"> </div>
  </div>
</div>
<div class="shodow clearfix">
    <h2 class="project-title">
    <?php echo __l('Change password'); ?></h2>
    <?php echo $this->element('user-avatar', array('config' => 'sec')); ?>
</div>
            <div class="shad-bg-lft clearfix">
             <div class="shad-bg-rgt">
              <div class="shad-bg">
                <div class="main-section">
<?php else: ?>
			 <div class="main-inner3">
<?php endif; ?>
						<?php
							echo $this->Form->create('User', array('action' => 'change_password' ,'class' => 'normal js-ajax-form'));
							if($this->Auth->user('user_type_id') == ConstUserTypes::Admin) :
								echo $this->Form->input('user_id', array('empty' => 'Select'));
							endif;
							if($this->Auth->user('user_type_id') != ConstUserTypes::Admin) :
								echo $this->Form->input('user_id', array('type' => 'hidden'));
								echo $this->Form->input('old_password', array('type' => 'password','label' => __l('Old password') ,'id' => 'old-password'));
							endif;
							echo $this->Form->input('passwd', array('type' => 'password','label' => __l('Enter a new password') , 'id' => 'new-password'));
							echo $this->Form->input('confirm_password', array('type' => 'password', 'label' => __l('Confirm Password')));?>
				<div class="submit-block clearfix"><?php echo $this->Form->submit(__l('Change password'));?></div>
				<?php echo $this->Form->end();?>
<?php if (empty($this->request->params['prefix'])): ?>
                </div>
               </div>
              </div>
             </div>
            <div class="l-curve-bot">
             <div class="r-curve-bot">
              <div class="bot-bg">
              </div>
             </div>
            </div>
<?php else: ?>
</div>
</div>
<?php endif; ?>
